package asteroids.model.programs.statements;

import asteroids.model.programs.expressions.Expression;

public class Assignment extends Statement {

	public Assignment(int line, int column, String variable, Expression rhs) {
		super(line, column);
		this.variable = variable;
		this.rhs = rhs;
	}

	@Override
	public void accept(StatementRunner sv) {
		sv.run(this);
	}

	public String getVariable() {
		return variable;
	}

	private final String variable;
	
	 public Expression getRhs() {
		return rhs;
	}
	 
	private final Expression rhs;

}
